package com.hy.service.impl;

import com.hy.mapper.ProductMapper;
import com.hy.service.ProductService;
import common.pojo.Products;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created With IntelliJ IDEA.
 * Descriptions:
 * author: Mr.Du
 * Date: 2022/10/19
 * Time: 17:40
 */
@Service
public class ProductServiceImpl implements ProductService {
    
    @Resource
    private ProductMapper productMapper;
    
    
    @Override
    public Products findById(Integer id) {
        Products products = productMapper.selectById(id);
        return products;
    }
}
